//hud & ui
// ---- Created with 3Dmigoto v1.2.67 on Fri Dec 01 19:47:36 2017
Texture2D<float4> t0 : register(t0);

SamplerState s0_s : register(s0);

cbuffer cb13 : register(b13)
{
  float4 cb13[5];
}

cbuffer cb6 : register(b6)
{
  float4 cb6[5];
}




// 3Dmigoto declarations
#define cmp -
Texture1D<float4> IniParams : register(t120);
Texture2D<float4> StereoParams : register(t125);


void main(
  float4 v0 : TEXCOORD6,
  float4 v1 : TEXCOORD0,
  out float4 o0 : SV_Target0)
{
  float4 r0,r1,r2;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.xyzw = t0.SampleLevel(s0_s, v1.xy, 0).xyzw;
  r1.x = cmp(0 < cb13[3].x);
  if (r1.x != 0) {
    r1.x = cb13[3].x + 0.5;
    r2.zw = r1.xx * cb13[3].yz + v1.xy;
    r1.y = t0.SampleLevel(s0_s, r2.zw, 0).w;
    r2.xy = -r1.xx * cb13[3].yz + v1.xy;
    r1.x = t0.SampleLevel(s0_s, r2.xw, 0).w;
    r1.x = r1.y + r1.x;
    r1.y = t0.SampleLevel(s0_s, r2.zy, 0).w;
    r1.x = r1.x + r1.y;
    r1.y = t0.SampleLevel(s0_s, r2.xy, 0).w;
    r1.x = r1.x + r1.y;
    r1.x = saturate(cb13[3].w * r1.x);
    r1.x = max(r1.x, r0.w);
    r0.xyz = r0.www * r0.xyz;
    r0.w = r1.x;
  }
  r0.xyz = cb13[4].xxx * r0.xyz;
  r1.xyzw = v0.xyzw * r0.xyzw;
  o0.xyz = r1.xyz * r1.www;
  r0.x = cmp(0 < cb6[4].x);
  r0.y = r0.w * v0.w + -cb6[4].y;
  r0.y = cmp(r0.y < 0);
  r0.x = r0.x ? r0.y : 0;
  if (r0.x != 0) discard;
  o0.w = r1.w;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.2.67 on Fri Dec 01 19:47:36 2017
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                 6   xyzw        0     NONE   float   xyzw
// TEXCOORD                 0   xyzw        1     NONE   float   xy  
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb6[5], immediateIndexed
dcl_constantbuffer cb13[5], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_input_ps linear v0.xyzw
dcl_input_ps linear v1.xy
dcl_output o0.xyzw
dcl_temps 3
sample_l_indexable(texture2d)(float,float,float,float) r0.xyzw, v1.xyxx, t0.xyzw, s0, l(0.000000)
lt r1.x, l(0.000000), cb13[3].x
if_nz r1.x
  add r1.x, l(0.500000), cb13[3].x
  mad r2.zw, r1.xxxx, cb13[3].yyyz, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r1.y, r2.zwzz, t0.xwyz, s0, l(0.000000)
  mad r2.xy, -r1.xxxx, cb13[3].yzyy, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r1.x, r2.xwxx, t0.wxyz, s0, l(0.000000)
  add r1.x, r1.x, r1.y
  sample_l_indexable(texture2d)(float,float,float,float) r1.y, r2.zyzz, t0.xwyz, s0, l(0.000000)
  add r1.x, r1.y, r1.x
  sample_l_indexable(texture2d)(float,float,float,float) r1.y, r2.xyxx, t0.xwyz, s0, l(0.000000)
  add r1.x, r1.y, r1.x
  mul_sat r1.x, r1.x, cb13[3].w
  max r1.x, r0.w, r1.x
  mul r0.xyz, r0.xyzx, r0.wwww
  mov r0.w, r1.x
endif 
mul r0.xyz, r0.xyzx, cb13[4].xxxx
mul r1.xyzw, r0.xyzw, v0.xyzw
mul o0.xyz, r1.wwww, r1.xyzx
lt r0.x, l(0.000000), cb6[4].x
mad r0.y, r0.w, v0.w, -cb6[4].y
lt r0.y, r0.y, l(0.000000)
and r0.x, r0.x, r0.y
discard_nz r0.x
mov o0.w, r1.w
ret 
// Approximately 0 instruction slots used

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
 